<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            border-style: dotted;
            border-color: gray;
        }
        .underline {
            text-decoration: underline;
        }

        .green {
            color: green;
        }

        .red {
            color: red;
        }

        .black {
            color: black;
            text-decoration: none;
        }
    </style>
</head>
<body>
<div style="display: flex;flex-direction: column; margin: 20px; gap:20px;">
    <a href="#" class="underline green">Ссылка 1</a>
    <a href="#" class="underline red">Ссылка 2</a>
    <a href="#" class="black">Ссылка 3</a>
</div>

</body>
</html>